package com.fenfen.novel.utils;

import java.util.Comparator;

public class DescIntComparator implements Comparator<Integer> {
  @Override
  public int compare(Integer lhs, Integer rhs) {
    if (lhs.equals(rhs)) {
      return 0;
    }
    if (lhs > rhs) {
      return -1;
    } else {
      return 1;
    }
  }
}
